package com.connector.base.connection;

import com.connector.base.connection.channel.SocketChannel;

public interface ConnectionRegistry
{
    public static final int STATUS_CREATEED = 0;
    public static final int STATUS_INITED = 1;
    public static final int STATUS_DESTROY = 2;
    
    Connection get(final SocketChannel clientChannel);
    
    Connection removeAndClose(final SocketChannel clientChannel);
    
    void add(final Connection connection);
    
    int getConnectionNum();
    
    void init();
    
    void destroy();
}
